import { createApp } from "vue";
import App from "./App.vue";
// pinia
import pinia from "@/store";
// iconfont
import "@/assets/iconfont/iconfont.scss";
// 重置样式
import "@/styles/reset.scss";
// 会广泛用到的公共样式
import "@/styles/common.scss";
// custom element css
import "@/styles/element.scss";
// vue-router
import router from "@/router/index";
// element icons
import * as Icons from "@element-plus/icons-vue";
// vue-i18n
import I18n from "@/language/index";

const app = createApp(App);

// 注册element Icons组件
Object.keys(Icons).forEach(key => {
	app.component(key, Icons[key as keyof typeof Icons]);
});

app.use(pinia).use(router).use(I18n).mount("#app");
